package com.hqyj.yanguangzhi.mapper;

import com.hqyj.common.dao.BaseTopicMapper;
import com.hqyj.common.pojo.ShortTopic;
import org.apache.ibatis.annotations.Select;
import org.springframework.scheduling.annotation.Async;

import java.util.List;

/**
 * YanGG
 *
 * @InterfaceName: OEShortTopicMapper
 * @author: yanguangzhi
 * @date: 2021/10/21 15:14
 */
public interface OEShortTopicMapper extends BaseTopicMapper {

    @Select("SELECT * FROM `short_topic` ORDER BY RAND() limit 2")
    List<ShortTopic> queryRandomShortTopic();
}
